﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mscook.core.domain
{
    public class MaterialOfCookBookMap : ClassMap<MaterialOfCookBook>
    {

        public MaterialOfCookBookMap()
        {
            Id(o => o.Id);
            Map(o => o.CreateTime);
            Map(o => o.IsDelete);
            Map(o => o.Version);
            Map(o => o.EntityIndex);

            References<CookBook>(o => o.CookBook).Nullable().Column("CookBookId");
            References<Material>(o => o.Material).Nullable().Column("MaterialId");
        }

    }
}
